package com.liukh.obwiki.req;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("电子书保存参数")
public class EbookSaveReq {
    @ApiModelProperty("ID")
    private Long id;

    @NotNull(message = "【名称】不能为空")
    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("分类1")
    private Long category1Id;

    @ApiModelProperty("分类2")
    private Long category2Id;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("图片")
    private String cover;

    @ApiModelProperty("文档数")
    private Integer docCount;

    @ApiModelProperty("阅读数")
    private Integer viewCount;

    @ApiModelProperty("点赞数")
    private Integer voteCount;
}
